package Year2021.month10.Day21.Day29Interface;

public class KingstonMemory  implements Memory{
    private int capacity;//容量;
    private String brand;//品牌;

    public KingstonMemory(int capacity, String brand) {
        this.capacity = capacity;
        this.brand = brand;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public String show() {
      return   brand+capacity+"GB";
    }
}





